/*
 * @Author: lg
 * @Date: 2023-09-07 15:48:58
 * @LastEditors: lg
 * @LastEditTime: 2023-09-22 15:41:03
 * @Description:
 * @FilePath: \work-distribution\src\types\request\index.ts
 */
/**
 * api返回单个对象
 */
export interface IHttpResult<T> {
  code: string;
  msg: string;
  success: boolean;
  timestamp: number;
  data: T;
}

/**
 * api返回集合对象
 */
export interface IHttpArrayResult<T> {
  code: string;
  msg: string;
  success: boolean;
  timestamp: number;
  data: Array<T>;
}

/**
 * @description: 列表查询参数,可进行继承
 * @return {*}
 */
export interface IListSearch {
  page: number;
  size: number;
}

/**
 * api返回的具体集合对象
 */
export interface IHttpPageResult<T> {
  currentPage: number;
  lastPage: number;
  first: boolean;
  last: boolean;
  pageSize: number;
  total: number;
  totalPages: number;
  data: Array<T>;
}
